package com.lancoo.examview

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.lancoo.answer.view.result.ResultFragment
import com.lancoo.examview.databinding.ActivityResultBinding

class ResultActivity : AppCompatActivity() {

//    private val mBinding: ActivityResultBinding by lazy {
//        DataBindingUtil.setContentView<ActivityResultBinding>(this,R.layout.activity_result)
//    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_result)
        supportFragmentManager
            .beginTransaction()
            .add(
                R.id.fl_result,
                ResultFragment.loadFragment(true)!!
            ) // 此处的R.id.fragment_container是要盛放fragment的父容器
            .commit()
    }
}
